home *** CD-ROM | disk | FTP | other *** search
Unknown | 2004-06-11 | 6.3 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 50 64 2f 2f 3d 3d 3d 3d |........|Pd//====|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0d 0a 2f 2f 20 54 65 |========|=..// Te|
|00000060| 61 6d 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |amPlayer|Replicat|
|00000070| 69 6f 6e 49 6e 66 6f 2e | 0d 0a 2f 2f 3d 3d 3d 3d |ionInfo.|..//====|
|00000080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0d 0a 63 6c 61 73 73 |========|=..class|
|000000d0| 20 54 65 61 6d 50 6c 61 | 79 65 72 52 65 70 6c 69 | TeamPla|yerRepli|
|000000e0| 63 61 74 69 6f 6e 49 6e | 66 6f 20 65 78 74 65 6e |cationIn|fo exten|
|000000f0| 64 73 20 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |ds Playe|rReplica|
|00000100| 74 69 6f 6e 49 6e 66 6f | 3b 0d 0a 0d 0a 76 61 72 |tionInfo|;....var|
|00000110| 20 63 6c 61 73 73 3c 53 | 63 6f 72 65 62 6f 61 72 | class<S|coreboar|
|00000120| 64 3e 20 4c 6f 63 61 6c | 53 74 61 74 73 53 63 72 |d> Local|StatsScr|
|00000130| 65 65 6e 43 6c 61 73 73 | 3b 0d 0a 76 61 72 20 53 |eenClass|;..var S|
|00000140| 71 75 61 64 41 49 20 53 | 71 75 61 64 3b 0d 0a 76 |quadAI S|quad;..v|
|00000150| 61 72 20 62 6f 6f 6c 20 | 62 48 6f 6c 64 69 6e 67 |ar bool |bHolding|
|00000160| 3b 0d 0a 0d 0a 2f 2f 20 | 66 6f 6c 6c 6f 77 69 6e |;....// |followin|
|00000170| 67 20 70 72 6f 70 65 72 | 74 69 65 73 20 61 72 65 |g proper|ties are|
|00000180| 20 75 73 65 64 20 66 6f | 72 20 73 65 72 76 65 72 | used fo|r server|
|00000190| 2d 73 69 64 65 20 6c 6f | 63 61 6c 20 73 74 61 74 |-side lo|cal stat|
|000001a0| 73 20 67 61 74 68 65 72 | 69 6e 67 20 61 6e 64 20 |s gather|ing and |
|000001b0| 6e 6f 74 20 72 65 70 6c | 69 63 61 74 65 64 20 28 |not repl|icated (|
|000001c0| 65 78 63 65 70 74 20 74 | 68 72 6f 75 67 68 20 72 |except t|hrough r|
|000001d0| 65 70 6c 69 63 61 74 65 | 64 20 66 75 6e 63 74 69 |eplicate|d functi|
|000001e0| 6f 6e 73 29 0d 0a 0d 0a | 76 61 72 20 62 6f 6f 6c |ons)....|var bool|
|000001f0| 20 62 46 69 72 73 74 42 | 6c 6f 6f 64 3b 0d 0a 0d | bFirstB|lood;...|
|00000200| 0a 73 74 72 75 63 74 20 | 57 65 61 70 6f 6e 53 74 |.struct |WeaponSt|
|00000210| 61 74 73 0d 0a 7b 0d 0a | 09 76 61 72 20 63 6c 61 |ats..{..|.var cla|
|00000220| 73 73 3c 57 65 61 70 6f | 6e 3e 20 57 65 61 70 6f |ss<Weapo|n> Weapo|
|00000230| 6e 43 6c 61 73 73 3b 0d | 0a 09 76 61 72 20 69 6e |nClass;.|..var in|
|00000240| 74 20 6b 69 6c 6c 73 3b | 0d 0a 09 76 61 72 20 69 |t kills;|...var i|
|00000250| 6e 74 20 64 65 61 74 68 | 73 3b 0d 0a 09 76 61 72 |nt death|s;...var|
|00000260| 20 69 6e 74 20 64 65 61 | 74 68 73 68 6f 6c 64 69 | int dea|thsholdi|
|00000270| 6e 67 3b 0d 0a 7d 3b 0d | 0a 76 61 72 20 61 72 72 |ng;..};.|.var arr|
|00000280| 61 79 3c 57 65 61 70 6f | 6e 53 74 61 74 73 3e 20 |ay<Weapo|nStats> |
|00000290| 57 65 61 70 6f 6e 53 74 | 61 74 73 41 72 72 61 79 |WeaponSt|atsArray|
|000002a0| 3b 0d 0a 0d 0a 73 74 72 | 75 63 74 20 56 65 68 69 |;....str|uct Vehi|
|000002b0| 63 6c 65 53 74 61 74 73 | 0d 0a 7b 0d 0a 09 76 61 |cleStats|..{...va|
|000002c0| 72 20 63 6c 61 73 73 3c | 56 65 68 69 63 6c 65 3e |r class<|Vehicle>|
|000002d0| 20 56 65 68 69 63 6c 65 | 43 6c 61 73 73 3b 0d 0a | Vehicle|Class;..|
|000002e0| 09 76 61 72 20 69 6e 74 | 20 4b 69 6c 6c 73 3b 0d |.var int| Kills;.|
|000002f0| 0a 09 76 61 72 20 69 6e | 74 20 44 65 61 74 68 73 |..var in|t Deaths|
|00000300| 3b 0d 0a 09 76 61 72 20 | 69 6e 74 20 44 65 61 74 |;...var |int Deat|
|00000310| 68 73 44 72 69 76 69 6e | 67 3b 0d 0a 7d 3b 0d 0a |hsDrivin|g;..};..|
|00000320| 76 61 72 20 61 72 72 61 | 79 3c 56 65 68 69 63 6c |var arra|y<Vehicl|
|00000330| 65 53 74 61 74 73 3e 20 | 56 65 68 69 63 6c 65 53 |eStats> |VehicleS|
|00000340| 74 61 74 73 41 72 72 61 | 79 3b 0d 0a 0d 0a 76 61 |tatsArra|y;....va|
|00000350| 72 20 69 6e 74 20 46 6c | 61 67 54 6f 75 63 68 65 |r int Fl|agTouche|
|00000360| 73 2c 20 46 6c 61 67 52 | 65 74 75 72 6e 73 3b 0d |s, FlagR|eturns;.|
|00000370| 0a 76 61 72 20 62 79 74 | 65 20 53 70 72 65 65 5b |.var byt|e Spree[|
|00000380| 36 5d 3b 0d 0a 76 61 72 | 20 62 79 74 65 20 4d 75 |6];..var| byte Mu|
|00000390| 6c 74 69 4b 69 6c 6c 73 | 5b 37 5d 3b 0d 0a 76 61 |ltiKills|[7];..va|
|000003a0| 72 20 69 6e 74 20 53 75 | 69 63 69 64 65 73 3b 0d |r int Su|icides;.|
|000003b0| 0a 76 61 72 20 69 6e 74 | 20 66 6c 61 6b 63 6f 75 |.var int| flakcou|
|000003c0| 6e 74 2c 63 6f 6d 62 6f | 63 6f 75 6e 74 2c 68 65 |nt,combo|count,he|
|000003d0| 61 64 63 6f 75 6e 74 2c | 72 61 6e 6f 76 65 72 63 |adcount,|ranoverc|
|000003e0| 6f 75 6e 74 2c 44 61 72 | 65 64 65 76 69 6c 50 6f |ount,Dar|edevilPo|
|000003f0| 69 6e 74 73 3b 0d 0a 76 | 61 72 20 62 79 74 65 20 |ints;..v|ar byte |
|00000400| 43 6f 6d 62 6f 73 5b 35 | 5d 3b 0d 0a 0d 0a 72 65 |Combos[5|];....re|
|00000410| 70 6c 69 63 61 74 69 6f | 6e 0d 0a 7b 0d 0a 09 72 |plicatio|n..{...r|
|00000420| 65 6c 69 61 62 6c 65 20 | 69 66 20 28 20 62 4e 65 |eliable |if ( bNe|
|00000430| 74 49 6e 69 74 69 61 6c | 20 26 26 20 28 52 6f 6c |tInitial| && (Rol|
|00000440| 65 20 3d 3d 20 52 4f 4c | 45 5f 41 75 74 68 6f 72 |e == ROL|E_Author|
|00000450| 69 74 79 29 20 29 0d 0a | 09 09 4c 6f 63 61 6c 53 |ity) )..|..LocalS|
|00000460| 74 61 74 73 53 63 72 65 | 65 6e 43 6c 61 73 73 3b |tatsScre|enClass;|
|00000470| 0d 0a 09 72 65 6c 69 61 | 62 6c 65 20 69 66 20 28 |...relia|ble if (|
|00000480| 20 52 6f 6c 65 20 3d 3d | 20 52 4f 4c 45 5f 41 75 | Role ==| ROLE_Au|
|00000490| 74 68 6f 72 69 74 79 20 | 29 0d 0a 09 09 53 71 75 |thority |)....Squ|
|000004a0| 61 64 2c 20 62 48 6f 6c | 64 69 6e 67 3b 20 2f 2f |ad, bHol|ding; //|
|000004b0| 2c 20 44 61 72 65 44 65 | 76 69 6c 50 6f 69 6e 74 |, DareDe|vilPoint|
|000004c0| 73 3b 0d 0a 7d 0d 0a 0d | 0a 73 69 6d 75 6c 61 74 |s;..}...|.simulat|
|000004d0| 65 64 20 66 75 6e 63 74 | 69 6f 6e 20 50 6f 73 74 |ed funct|ion Post|
|000004e0| 42 65 67 69 6e 50 6c 61 | 79 28 29 0d 0a 7b 0d 0a |BeginPla|y()..{..|
|000004f0| 09 53 75 70 65 72 2e 50 | 6f 73 74 42 65 67 69 6e |.Super.P|ostBegin|
|00000500| 50 6c 61 79 28 29 3b 0d | 0a 0d 0a 09 69 66 20 28 |Play();.|....if (|
|00000510| 20 55 6e 72 65 61 6c 4d | 50 47 61 6d 65 49 6e 66 | UnrealM|PGameInf|
|00000520| 6f 28 4c 65 76 65 6c 2e | 47 61 6d 65 29 20 21 3d |o(Level.|Game) !=|
|00000530| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 4c 6f 63 61 6c | None ).|...Local|
|00000540| 53 74 61 74 73 53 63 72 | 65 65 6e 43 6c 61 73 73 |StatsScr|eenClass|
|00000550| 20 3d 20 55 6e 72 65 61 | 6c 4d 50 47 61 6d 65 49 | = Unrea|lMPGameI|
|00000560| 6e 66 6f 28 4c 65 76 65 | 6c 2e 47 61 6d 65 29 2e |nfo(Leve|l.Game).|
|00000570| 4c 6f 63 61 6c 53 74 61 | 74 73 53 63 72 65 65 6e |LocalSta|tsScreen|
|00000580| 43 6c 61 73 73 3b 0d 0a | 7d 0d 0a 0d 0a 73 69 6d |Class;..|}....sim|
|00000590| 75 6c 61 74 65 64 20 66 | 75 6e 63 74 69 6f 6e 20 |ulated f|unction |
|000005a0| 55 70 64 61 74 65 57 65 | 61 70 6f 6e 53 74 61 74 |UpdateWe|aponStat|
|000005b0| 73 28 54 65 61 6d 50 6c | 61 79 65 72 52 65 70 6c |s(TeamPl|ayerRepl|
|000005c0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 20 50 52 49 2c |icationI|nfo PRI,|
|000005d0| 20 63 6c 61 73 73 3c 57 | 65 61 70 6f 6e 3e 20 57 | class<W|eapon> W|
|000005e0| 2c 20 69 6e 74 20 6e 65 | 77 4b 69 6c 6c 73 2c 20 |, int ne|wKills, |
|000005f0| 69 6e 74 20 6e 65 77 44 | 65 61 74 68 73 2c 20 69 |int newD|eaths, i|
|00000600| 6e 74 20 6e 65 77 44 65 | 61 74 68 73 48 6f 6c 64 |nt newDe|athsHold|
|00000610| 69 6e 67 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |ing)..{.|..local |
|00000620| 69 6e 74 20 69 3b 0d 0a | 09 6c 6f 63 61 6c 20 57 |int i;..|.local W|
|00000630| 65 61 70 6f 6e 53 74 61 | 74 73 20 4e 65 77 57 65 |eaponSta|ts NewWe|
|00000640| 61 70 6f 6e 53 74 61 74 | 73 3b 0d 0a 0d 0a 09 66 |aponStat|s;.....f|
|00000650| 6f 72 20 28 20 69 3d 30 | 3b 20 69 3c 57 65 61 70 |or ( i=0|; i<Weap|
|00000660| 6f 6e 53 74 61 74 73 41 | 72 72 61 79 2e 4c 65 6e |onStatsA|rray.Len|
|00000670| 67 74 68 3b 20 69 2b 2b | 20 29 0d 0a 09 7b 0d 0a |gth; i++| )...{..|
|00000680| 09 09 69 66 20 28 20 57 | 65 61 70 6f 6e 53 74 61 |..if ( W|eaponSta|
|00000690| 74 73 41 72 72 61 79 5b | 69 5d 2e 57 65 61 70 6f |tsArray[|i].Weapo|
|000006a0| 6e 43 6c 61 73 73 20 3d | 3d 20 57 20 29 0d 0a 09 |nClass =|= W )...|
|000006b0| 09 7b 0d 0a 09 09 09 57 | 65 61 70 6f 6e 53 74 61 |.{.....W|eaponSta|
|000006c0| 74 73 41 72 72 61 79 5b | 69 5d 2e 4b 69 6c 6c 73 |tsArray[|i].Kills|
|000006d0| 20 3d 20 6e 65 77 4b 69 | 6c 6c 73 3b 0d 0a 09 09 | = newKi|lls;....|
|000006e0| 09 57 65 61 70 6f 6e 53 | 74 61 74 73 41 72 72 61 |.WeaponS|tatsArra|
|000006f0| 79 5b 69 5d 2e 44 65 61 | 74 68 73 20 3d 20 6e 65 |y[i].Dea|ths = ne|
|00000700| 77 44 65 61 74 68 73 3b | 0d 0a 09 09 09 57 65 61 |wDeaths;|.....Wea|
|00000710| 70 6f 6e 53 74 61 74 73 | 41 72 72 61 79 5b 69 5d |ponStats|Array[i]|
|00000720| 2e 44 65 61 74 68 73 48 | 6f 6c 64 69 6e 67 20 3d |.DeathsH|olding =|
|00000730| 20 6e 65 77 44 65 61 74 | 68 73 48 6f 6c 64 69 6e | newDeat|hsHoldin|
|00000740| 67 3b 0d 0a 09 09 09 72 | 65 74 75 72 6e 3b 0d 0a |g;.....r|eturn;..|
|00000750| 09 09 7d 0d 0a 09 7d 0d | 0a 0d 0a 09 4e 65 77 57 |..}...}.|....NewW|
|00000760| 65 61 70 6f 6e 53 74 61 | 74 73 2e 57 65 61 70 6f |eaponSta|ts.Weapo|
|00000770| 6e 43 6c 61 73 73 20 3d | 20 57 3b 0d 0a 09 4e 65 |nClass =| W;...Ne|
|00000780| 77 57 65 61 70 6f 6e 53 | 74 61 74 73 2e 4b 69 6c |wWeaponS|tats.Kil|
|00000790| 6c 73 20 3d 20 6e 65 77 | 4b 69 6c 6c 73 3b 0d 0a |ls = new|Kills;..|
|000007a0| 09 4e 65 77 57 65 61 70 | 6f 6e 53 74 61 74 73 2e |.NewWeap|onStats.|
|000007b0| 44 65 61 74 68 73 20 3d | 20 6e 65 77 44 65 61 74 |Deaths =| newDeat|
|000007c0| 68 73 3b 0d 0a 09 4e 65 | 77 57 65 61 70 6f 6e 53 |hs;...Ne|wWeaponS|
|000007d0| 74 61 74 73 2e 44 65 61 | 74 68 73 48 6f 6c 64 69 |tats.Dea|thsHoldi|
|000007e0| 6e 67 20 3d 20 6e 65 77 | 44 65 61 74 68 73 48 6f |ng = new|DeathsHo|
|000007f0| 6c 64 69 6e 67 3b 0d 0a | 09 57 65 61 70 6f 6e 53 |lding;..|.WeaponS|
|00000800| 74 61 74 73 41 72 72 61 | 79 5b 57 65 61 70 6f 6e |tatsArra|y[Weapon|
|00000810| 53 74 61 74 73 41 72 72 | 61 79 2e 4c 65 6e 67 74 |StatsArr|ay.Lengt|
|00000820| 68 5d 20 3d 20 4e 65 77 | 57 65 61 70 6f 6e 53 74 |h] = New|WeaponSt|
|00000830| 61 74 73 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |ats;..}.|...funct|
|00000840| 69 6f 6e 20 41 64 64 57 | 65 61 70 6f 6e 4b 69 6c |ion AddW|eaponKil|
|00000850| 6c 28 63 6c 61 73 73 3c | 44 61 6d 61 67 65 54 79 |l(class<|DamageTy|
|00000860| 70 65 3e 20 44 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |pe> D)..|{...loca|
|00000870| 6c 20 63 6c 61 73 73 3c | 57 65 61 70 6f 6e 3e 20 |l class<|Weapon> |
|00000880| 57 3b 0d 0a 09 6c 6f 63 | 61 6c 20 69 6e 74 20 69 |W;...loc|al int i|
|00000890| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 57 65 61 70 6f 6e |;...loca|l Weapon|
|000008a0| 53 74 61 74 73 20 4e 65 | 77 57 65 61 70 6f 6e 53 |Stats Ne|wWeaponS|
|000008b0| 74 61 74 73 3b 0d 0a 0d | 0a 09 69 66 20 28 20 63 |tats;...|..if ( c|
|000008c0| 6c 61 73 73 3c 56 65 68 | 69 63 6c 65 44 61 6d 61 |lass<Veh|icleDama|
|000008d0| 67 65 54 79 70 65 3e 28 | 44 29 20 21 3d 20 4e 6f |geType>(|D) != No|
|000008e0| 6e 65 20 29 0d 0a 09 7b | 0d 0a 09 09 41 64 64 56 |ne )...{|....AddV|
|000008f0| 65 68 69 63 6c 65 4b 69 | 6c 6c 28 63 6c 61 73 73 |ehicleKi|ll(class|
|00000900| 3c 56 65 68 69 63 6c 65 | 44 61 6d 61 67 65 54 79 |<Vehicle|DamageTy|
|00000910| 70 65 3e 28 44 29 29 3b | 0d 0a 09 09 72 65 74 75 |pe>(D));|....retu|
|00000920| 72 6e 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 69 66 20 28 |rn;...}.|....if (|
|00000930| 20 63 6c 61 73 73 3c 57 | 65 61 70 6f 6e 44 61 6d | class<W|eaponDam|
|00000940| 61 67 65 54 79 70 65 3e | 28 44 29 20 3d 3d 20 4e |ageType>|(D) == N|
|00000950| 6f 6e 65 20 29 0d 0a 09 | 09 72 65 74 75 72 6e 3b |one )...|.return;|
|00000960| 0d 0a 0d 0a 09 57 20 3d | 20 63 6c 61 73 73 3c 57 |.....W =| class<W|
|00000970| 65 61 70 6f 6e 44 61 6d | 61 67 65 54 79 70 65 3e |eaponDam|ageType>|
|00000980| 28 44 29 2e 64 65 66 61 | 75 6c 74 2e 57 65 61 70 |(D).defa|ult.Weap|
|00000990| 6f 6e 43 6c 61 73 73 3b | 0d 0a 0d 0a 09 66 6f 72 |onClass;|.....for|
|000009a0| 20 28 20 69 3d 30 3b 20 | 69 3c 57 65 61 70 6f 6e | ( i=0; |i<Weapon|
|000009b0| 53 74 61 74 73 41 72 72 | 61 79 2e 4c 65 6e 67 74 |StatsArr|ay.Lengt|
|000009c0| 68 3b 20 69 2b 2b 20 29 | 0d 0a 09 7b 0d 0a 09 09 |h; i++ )|...{....|
|000009d0| 69 66 20 28 20 57 65 61 | 70 6f 6e 53 74 61 74 73 |if ( Wea|ponStats|
|000009e0| 41 72 72 61 79 5b 69 5d | 2e 57 65 61 70 6f 6e 43 |Array[i]|.WeaponC|
|000009f0| 6c 61 73 73 20 3d 3d 20 | 57 20 29 0d 0a 09 09 7b |lass == |W )....{|
|00000a00| 0d 0a 09 09 09 57 65 61 | 70 6f 6e 53 74 61 74 73 |.....Wea|ponStats|
|00000a10| 41 72 72 61 79 5b 69 5d | 2e 4b 69 6c 6c 73 2b 2b |Array[i]|.Kills++|
|00000a20| 3b 0d 0a 09 09 09 72 65 | 74 75 72 6e 3b 0d 0a 09 |;.....re|turn;...|
|00000a30| 09 7d 0d 0a 09 7d 0d 0a | 0d 0a 09 4e 65 77 57 65 |.}...}..|...NewWe|
|00000a40| 61 70 6f 6e 53 74 61 74 | 73 2e 57 65 61 70 6f 6e |aponStat|s.Weapon|
|00000a50| 43 6c 61 73 73 20 3d 20 | 57 3b 0d 0a 09 4e 65 77 |Class = |W;...New|
|00000a60| 57 65 61 70 6f 6e 53 74 | 61 74 73 2e 4b 69 6c 6c |WeaponSt|ats.Kill|
|00000a70| 73 20 3d 20 31 3b 0d 0a | 09 57 65 61 70 6f 6e 53 |s = 1;..|.WeaponS|
|00000a80| 74 61 74 73 41 72 72 61 | 79 5b 57 65 61 70 6f 6e |tatsArra|y[Weapon|
|00000a90| 53 74 61 74 73 41 72 72 | 61 79 2e 4c 65 6e 67 74 |StatsArr|ay.Lengt|
|00000aa0| 68 5d 20 3d 20 4e 65 77 | 57 65 61 70 6f 6e 53 74 |h] = New|WeaponSt|
|00000ab0| 61 74 73 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |ats;..}.|...funct|
|00000ac0| 69 6f 6e 20 41 64 64 57 | 65 61 70 6f 6e 44 65 61 |ion AddW|eaponDea|
|00000ad0| 74 68 28 63 6c 61 73 73 | 3c 44 61 6d 61 67 65 54 |th(class|<DamageT|
|00000ae0| 79 70 65 3e 20 44 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |ype> D).|.{...loc|
|00000af0| 61 6c 20 63 6c 61 73 73 | 3c 57 65 61 70 6f 6e 3e |al class|<Weapon>|
|00000b00| 20 57 2c 20 4c 61 73 74 | 57 65 61 70 6f 6e 3b 0d | W, Last|Weapon;.|
|00000b10| 0a 09 6c 6f 63 61 6c 20 | 69 6e 74 20 69 3b 0d 0a |..local |int i;..|
|00000b20| 09 6c 6f 63 61 6c 20 57 | 65 61 70 6f 6e 53 74 61 |.local W|eaponSta|
|00000b30| 74 73 20 4e 65 77 57 65 | 61 70 6f 6e 53 74 61 74 |ts NewWe|aponStat|
|00000b40| 73 3b 0d 0a 09 6c 6f 63 | 61 6c 20 56 65 68 69 63 |s;...loc|al Vehic|
|00000b50| 6c 65 20 44 72 69 76 65 | 6e 56 65 68 69 63 6c 65 |le Drive|nVehicle|
|00000b60| 3b 0d 0a 0d 0a 09 69 66 | 20 28 43 6f 6e 74 72 6f |;.....if| (Contro|
|00000b70| 6c 6c 65 72 28 4f 77 6e | 65 72 29 2e 50 61 77 6e |ller(Own|er).Pawn|
|00000b80| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 09 7b 0d 0a 09 | != None|)...{...|
|00000b90| 09 44 72 69 76 65 6e 56 | 65 68 69 63 6c 65 20 3d |.DrivenV|ehicle =|
|00000ba0| 20 56 65 68 69 63 6c 65 | 28 43 6f 6e 74 72 6f 6c | Vehicle|(Control|
|00000bb0| 6c 65 72 28 4f 77 6e 65 | 72 29 2e 50 61 77 6e 29 |ler(Owne|r).Pawn)|
|00000bc0| 3b 0d 0a 09 09 69 66 20 | 28 44 72 69 76 65 6e 56 |;....if |(DrivenV|
|00000bd0| 65 68 69 63 6c 65 20 3d | 3d 20 4e 6f 6e 65 29 0d |ehicle =|= None).|
|00000be0| 0a 09 09 09 44 72 69 76 | 65 6e 56 65 68 69 63 6c |....Driv|enVehicl|
|00000bf0| 65 20 3d 20 43 6f 6e 74 | 72 6f 6c 6c 65 72 28 4f |e = Cont|roller(O|
|00000c00| 77 6e 65 72 29 2e 50 61 | 77 6e 2e 44 72 69 76 65 |wner).Pa|wn.Drive|
|00000c10| 6e 56 65 68 69 63 6c 65 | 3b 0d 0a 09 09 69 66 20 |nVehicle|;....if |
|00000c20| 28 44 72 69 76 65 6e 56 | 65 68 69 63 6c 65 20 21 |(DrivenV|ehicle !|
|00000c30| 3d 20 4e 6f 6e 65 29 0d | 0a 09 09 09 41 64 64 56 |= None).|....AddV|
|00000c40| 65 68 69 63 6c 65 44 65 | 61 74 68 44 72 69 76 69 |ehicleDe|athDrivi|
|00000c50| 6e 67 28 44 72 69 76 65 | 6e 56 65 68 69 63 6c 65 |ng(Drive|nVehicle|
|00000c60| 2e 43 6c 61 73 73 29 3b | 0d 0a 09 7d 0d 0a 09 69 |.Class);|...}...i|
|00000c70| 66 20 28 44 72 69 76 65 | 6e 56 65 68 69 63 6c 65 |f (Drive|nVehicle|
|00000c80| 20 3d 3d 20 4e 6f 6e 65 | 29 0d 0a 09 7b 0d 0a 09 | == None|)...{...|
|00000c90| 09 4c 61 73 74 57 65 61 | 70 6f 6e 20 3d 20 43 6f |.LastWea|pon = Co|
|00000ca0| 6e 74 72 6f 6c 6c 65 72 | 28 4f 77 6e 65 72 29 2e |ntroller|(Owner).|
|00000cb0| 47 65 74 4c 61 73 74 57 | 65 61 70 6f 6e 28 29 3b |GetLastW|eapon();|
|00000cc0| 0d 0a 0d 0a 09 09 69 66 | 20 28 20 4c 61 73 74 57 |......if| ( LastW|
|00000cd0| 65 61 70 6f 6e 20 21 3d | 20 4e 6f 6e 65 20 29 0d |eapon !=| None ).|
|00000ce0| 0a 09 09 09 41 64 64 57 | 65 61 70 6f 6e 44 65 61 |....AddW|eaponDea|
|00000cf0| 74 68 48 6f 6c 64 69 6e | 67 28 4c 61 73 74 57 65 |thHoldin|g(LastWe|
|00000d00| 61 70 6f 6e 29 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 69 |apon);..|.}.....i|
|00000d10| 66 20 28 20 63 6c 61 73 | 73 3c 56 65 68 69 63 6c |f ( clas|s<Vehicl|
|00000d20| 65 44 61 6d 61 67 65 54 | 79 70 65 3e 28 44 29 20 |eDamageT|ype>(D) |
|00000d30| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 7b 0d 0a 09 |!= None |)...{...|
|00000d40| 09 41 64 64 56 65 68 69 | 63 6c 65 44 65 61 74 68 |.AddVehi|cleDeath|
|00000d50| 28 63 6c 61 73 73 3c 56 | 65 68 69 63 6c 65 44 61 |(class<V|ehicleDa|
|00000d60| 6d 61 67 65 54 79 70 65 | 3e 28 44 29 29 3b 0d 0a |mageType|>(D));..|
|00000d70| 09 09 72 65 74 75 72 6e | 3b 0d 0a 09 7d 0d 0a 0d |..return|;...}...|
|00000d80| 0a 09 69 66 20 28 20 63 | 6c 61 73 73 3c 57 65 61 |..if ( c|lass<Wea|
|00000d90| 70 6f 6e 44 61 6d 61 67 | 65 54 79 70 65 3e 28 44 |ponDamag|eType>(D|
|00000da0| 29 20 3d 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 72 |) == Non|e )....r|
|00000db0| 65 74 75 72 6e 3b 0d 0a | 0d 0a 09 57 20 3d 20 63 |eturn;..|...W = c|
|00000dc0| 6c 61 73 73 3c 57 65 61 | 70 6f 6e 44 61 6d 61 67 |lass<Wea|ponDamag|
|00000dd0| 65 54 79 70 65 3e 28 44 | 29 2e 64 65 66 61 75 6c |eType>(D|).defaul|
|00000de0| 74 2e 57 65 61 70 6f 6e | 43 6c 61 73 73 3b 0d 0a |t.Weapon|Class;..|
|00000df0| 0d 0a 09 66 6f 72 20 28 | 20 69 3d 30 3b 20 69 3c |...for (| i=0; i<|
|00000e00| 57 65 61 70 6f 6e 53 74 | 61 74 73 41 72 72 61 79 |WeaponSt|atsArray|
|00000e10| 2e 4c 65 6e 67 74 68 3b | 20 69 2b 2b 20 29 0d 0a |.Length;| i++ )..|
|00000e20| 09 7b 0d 0a 09 09 69 66 | 20 28 20 57 65 61 70 6f |.{....if| ( Weapo|
|00000e30| 6e 53 74 61 74 73 41 72 | 72 61 79 5b 69 5d 2e 57 |nStatsAr|ray[i].W|
|00000e40| 65 61 70 6f 6e 43 6c 61 | 73 73 20 3d 3d 20 57 20 |eaponCla|ss == W |
|00000e50| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 57 65 61 70 6f |)....{..|...Weapo|
|00000e60| 6e 53 74 61 74 73 41 72 | 72 61 79 5b 69 5d 2e 44 |nStatsAr|ray[i].D|
|00000e70| 65 61 74 68 73 2b 2b 3b | 0d 0a 09 09 09 72 65 74 |eaths++;|.....ret|
|00000e80| 75 72 6e 3b 0d 0a 09 09 | 7d 0d 0a 09 7d 0d 0a 0d |urn;....|}...}...|
|00000e90| 0a 09 4e 65 77 57 65 61 | 70 6f 6e 53 74 61 74 73 |..NewWea|ponStats|
|00000ea0| 2e 57 65 61 70 6f 6e 43 | 6c 61 73 73 20 3d 20 57 |.WeaponC|lass = W|
|00000eb0| 3b 0d 0a 09 4e 65 77 57 | 65 61 70 6f 6e 53 74 61 |;...NewW|eaponSta|
|00000ec0| 74 73 2e 44 65 61 74 68 | 73 20 3d 20 31 3b 0d 0a |ts.Death|s = 1;..|
|00000ed0| 09 57 65 61 70 6f 6e 53 | 74 61 74 73 41 72 72 61 |.WeaponS|tatsArra|
|00000ee0| 79 5b 57 65 61 70 6f 6e | 53 74 61 74 73 41 72 72 |y[Weapon|StatsArr|
|00000ef0| 61 79 2e 4c 65 6e 67 74 | 68 5d 20 3d 20 4e 65 77 |ay.Lengt|h] = New|
|00000f00| 57 65 61 70 6f 6e 53 74 | 61 74 73 3b 0d 0a 7d 0d |WeaponSt|ats;..}.|
|00000f10| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 41 64 64 57 |...funct|ion AddW|
|00000f20| 65 61 70 6f 6e 44 65 61 | 74 68 48 6f 6c 64 69 6e |eaponDea|thHoldin|
|00000f30| 67 28 63 6c 61 73 73 3c | 57 65 61 70 6f 6e 3e 20 |g(class<|Weapon> |
|00000f40| 57 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e |W)..{...|local in|
|00000f50| 74 20 69 3b 0d 0a 09 6c | 6f 63 61 6c 20 57 65 61 |t i;...l|ocal Wea|
|00000f60| 70 6f 6e 53 74 61 74 73 | 20 4e 65 77 57 65 61 70 |ponStats| NewWeap|
|00000f70| 6f 6e 53 74 61 74 73 3b | 0d 0a 0d 0a 09 66 6f 72 |onStats;|.....for|
|00000f80| 20 28 20 69 3d 30 3b 20 | 69 3c 57 65 61 70 6f 6e | ( i=0; |i<Weapon|
|00000f90| 53 74 61 74 73 41 72 72 | 61 79 2e 4c 65 6e 67 74 |StatsArr|ay.Lengt|
|00000fa0| 68 3b 20 69 2b 2b 20 29 | 0d 0a 09 7b 0d 0a 09 09 |h; i++ )|...{....|
|00000fb0| 69 66 20 28 20 57 65 61 | 70 6f 6e 53 74 61 74 73 |if ( Wea|ponStats|
|00000fc0| 41 72 72 61 79 5b 69 5d | 2e 57 65 61 70 6f 6e 43 |Array[i]|.WeaponC|
|00000fd0| 6c 61 73 73 20 3d 3d 20 | 57 20 29 0d 0a 09 09 7b |lass == |W )....{|
|00000fe0| 0d 0a 09 09 09 57 65 61 | 70 6f 6e 53 74 61 74 73 |.....Wea|ponStats|
|00000ff0| 41 72 72 61 79 5b 69 5d | 2e 44 65 61 74 68 73 48 |Array[i]|.DeathsH|
|00001000| 6f 6c 64 69 6e 67 2b 2b | 3b 0d 0a 09 09 09 72 65 |olding++|;.....re|
|00001010| 74 75 72 6e 3b 0d 0a 09 | 09 7d 0d 0a 09 7d 0d 0a |turn;...|.}...}..|
|00001020| 0d 0a 09 4e 65 77 57 65 | 61 70 6f 6e 53 74 61 74 |...NewWe|aponStat|
|00001030| 73 2e 57 65 61 70 6f 6e | 43 6c 61 73 73 20 3d 20 |s.Weapon|Class = |
|00001040| 57 3b 0d 0a 09 4e 65 77 | 57 65 61 70 6f 6e 53 74 |W;...New|WeaponSt|
|00001050| 61 74 73 2e 44 65 61 74 | 68 73 48 6f 6c 64 69 6e |ats.Deat|hsHoldin|
|00001060| 67 20 3d 20 31 3b 0d 0a | 09 57 65 61 70 6f 6e 53 |g = 1;..|.WeaponS|
|00001070| 74 61 74 73 41 72 72 61 | 79 5b 57 65 61 70 6f 6e |tatsArra|y[Weapon|
|00001080| 53 74 61 74 73 41 72 72 | 61 79 2e 4c 65 6e 67 74 |StatsArr|ay.Lengt|
|00001090| 68 5d 20 3d 20 4e 65 77 | 57 65 61 70 6f 6e 53 74 |h] = New|WeaponSt|
|000010a0| 61 74 73 3b 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c |ats;..}.|...simul|
|000010b0| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 55 70 |ated fun|ction Up|
|000010c0| 64 61 74 65 56 65 68 69 | 63 6c 65 53 74 61 74 73 |dateVehi|cleStats|
|000010d0| 28 54 65 61 6d 50 6c 61 | 79 65 72 52 65 70 6c 69 |(TeamPla|yerRepli|
|000010e0| 63 61 74 69 6f 6e 49 6e | 66 6f 20 50 52 49 2c 20 |cationIn|fo PRI, |
|000010f0| 63 6c 61 73 73 3c 56 65 | 68 69 63 6c 65 3e 20 56 |class<Ve|hicle> V|
|00001100| 2c 20 69 6e 74 20 6e 65 | 77 4b 69 6c 6c 73 2c 20 |, int ne|wKills, |
|00001110| 69 6e 74 20 6e 65 77 44 | 65 61 74 68 73 2c 20 69 |int newD|eaths, i|
|00001120| 6e 74 20 6e 65 77 44 65 | 61 74 68 73 44 72 69 76 |nt newDe|athsDriv|
|00001130| 69 6e 67 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |ing)..{.|..local |
|00001140| 69 6e 74 20 69 3b 0d 0a | 09 6c 6f 63 61 6c 20 56 |int i;..|.local V|
|00001150| 65 68 69 63 6c 65 53 74 | 61 74 73 20 4e 65 77 56 |ehicleSt|ats NewV|
|00001160| 65 68 69 63 6c 65 53 74 | 61 74 73 3b 0d 0a 0d 0a |ehicleSt|ats;....|
|00001170| 09 66 6f 72 20 28 69 20 | 3d 20 30 3b 20 69 20 3c |.for (i |= 0; i <|
|00001180| 20 56 65 68 69 63 6c 65 | 53 74 61 74 73 41 72 72 | Vehicle|StatsArr|
|00001190| 61 79 2e 4c 65 6e 67 74 | 68 3b 20 69 2b 2b 29 0d |ay.Lengt|h; i++).|
|000011a0| 0a 09 09 69 66 20 28 56 | 65 68 69 63 6c 65 53 74 |...if (V|ehicleSt|
|000011b0| 61 74 73 41 72 72 61 79 | 5b 69 5d 2e 56 65 68 69 |atsArray|[i].Vehi|
|000011c0| 63 6c 65 43 6c 61 73 73 | 20 3d 3d 20 56 29 0d 0a |cleClass| == V)..|
|000011d0| 09 09 7b 0d 0a 09 09 09 | 56 65 68 69 63 6c 65 53 |..{.....|VehicleS|
|000011e0| 74 61 74 73 41 72 72 61 | 79 5b 69 5d 2e 4b 69 6c |tatsArra|y[i].Kil|
|000011f0| 6c 73 20 3d 20 6e 65 77 | 4b 69 6c 6c 73 3b 0d 0a |ls = new|Kills;..|
|00001200| 09 09 09 56 65 68 69 63 | 6c 65 53 74 61 74 73 41 |...Vehic|leStatsA|
|00001210| 72 72 61 79 5b 69 5d 2e | 44 65 61 74 68 73 20 3d |rray[i].|Deaths =|
|00001220| 20 6e 65 77 44 65 61 74 | 68 73 3b 0d 0a 09 09 09 | newDeat|hs;.....|
|00001230| 56 65 68 69 63 6c 65 53 | 74 61 74 73 41 72 72 61 |VehicleS|tatsArra|
|00001240| 79 5b 69 5d 2e 44 65 61 | 74 68 73 44 72 69 76 69 |y[i].Dea|thsDrivi|
|00001250| 6e 67 20 3d 20 6e 65 77 | 44 65 61 74 68 73 44 72 |ng = new|DeathsDr|
|00001260| 69 76 69 6e 67 3b 0d 0a | 09 09 09 72 65 74 75 72 |iving;..|...retur|
|00001270| 6e 3b 0d 0a 09 09 7d 0d | 0a 0d 0a 09 4e 65 77 56 |n;....}.|....NewV|
|00001280| 65 68 69 63 6c 65 53 74 | 61 74 73 2e 56 65 68 69 |ehicleSt|ats.Vehi|
|00001290| 63 6c 65 43 6c 61 73 73 | 20 3d 20 56 3b 0d 0a 09 |cleClass| = V;...|
|000012a0| 4e 65 77 56 65 68 69 63 | 6c 65 53 74 61 74 73 2e |NewVehic|leStats.|
|000012b0| 4b 69 6c 6c 73 20 3d 20 | 6e 65 77 4b 69 6c 6c 73 |Kills = |newKills|
|000012c0| 3b 0d 0a 09 4e 65 77 56 | 65 68 69 63 6c 65 53 74 |;...NewV|ehicleSt|
|000012d0| 61 74 73 2e 44 65 61 74 | 68 73 20 3d 20 6e 65 77 |ats.Deat|hs = new|
|000012e0| 44 65 61 74 68 73 3b 0d | 0a 09 4e 65 77 56 65 68 |Deaths;.|..NewVeh|
|000012f0| 69 63 6c 65 53 74 61 74 | 73 2e 44 65 61 74 68 73 |icleStat|s.Deaths|
|00001300| 44 72 69 76 69 6e 67 20 | 3d 20 6e 65 77 44 65 61 |Driving |= newDea|
|00001310| 74 68 73 44 72 69 76 69 | 6e 67 3b 0d 0a 09 56 65 |thsDrivi|ng;...Ve|
|00001320| 68 69 63 6c 65 53 74 61 | 74 73 41 72 72 61 79 5b |hicleSta|tsArray[|
|00001330| 56 65 68 69 63 6c 65 53 | 74 61 74 73 41 72 72 61 |VehicleS|tatsArra|
|00001340| 79 2e 4c 65 6e 67 74 68 | 5d 20 3d 20 4e 65 77 56 |y.Length|] = NewV|
|00001350| 65 68 69 63 6c 65 53 74 | 61 74 73 3b 0d 0a 7d 0d |ehicleSt|ats;..}.|
|00001360| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 41 64 64 56 |...funct|ion AddV|
|00001370| 65 68 69 63 6c 65 4b 69 | 6c 6c 28 63 6c 61 73 73 |ehicleKi|ll(class|
|00001380| 3c 56 65 68 69 63 6c 65 | 44 61 6d 61 67 65 54 79 |<Vehicle|DamageTy|
|00001390| 70 65 3e 20 44 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |pe> D)..|{...loca|
|000013a0| 6c 20 63 6c 61 73 73 3c | 56 65 68 69 63 6c 65 3e |l class<|Vehicle>|
|000013b0| 20 56 3b 0d 0a 09 6c 6f | 63 61 6c 20 69 6e 74 20 | V;...lo|cal int |
|000013c0| 69 3b 0d 0a 09 6c 6f 63 | 61 6c 20 56 65 68 69 63 |i;...loc|al Vehic|
|000013d0| 6c 65 53 74 61 74 73 20 | 4e 65 77 56 65 68 69 63 |leStats |NewVehic|
|000013e0| 6c 65 53 74 61 74 73 3b | 0d 0a 0d 0a 09 56 20 3d |leStats;|.....V =|
|000013f0| 20 44 2e 64 65 66 61 75 | 6c 74 2e 56 65 68 69 63 | D.defau|lt.Vehic|
|00001400| 6c 65 43 6c 61 73 73 3b | 0d 0a 09 69 66 20 28 56 |leClass;|...if (V|
|00001410| 20 3d 3d 20 4e 6f 6e 65 | 29 0d 0a 09 09 72 65 74 | == None|)....ret|
|00001420| 75 72 6e 3b 0d 0a 0d 0a | 09 66 6f 72 20 28 69 20 |urn;....|.for (i |
|00001430| 3d 20 30 3b 20 69 20 3c | 20 56 65 68 69 63 6c 65 |= 0; i <| Vehicle|
|00001440| 53 74 61 74 73 41 72 72 | 61 79 2e 4c 65 6e 67 74 |StatsArr|ay.Lengt|
|00001450| 68 3b 20 69 2b 2b 29 0d | 0a 09 09 69 66 20 28 56 |h; i++).|...if (V|
|00001460| 65 68 69 63 6c 65 53 74 | 61 74 73 41 72 72 61 79 |ehicleSt|atsArray|
|00001470| 5b 69 5d 2e 56 65 68 69 | 63 6c 65 43 6c 61 73 73 |[i].Vehi|cleClass|
|00001480| 20 3d 3d 20 56 29 0d 0a | 09 09 7b 0d 0a 09 09 09 | == V)..|..{.....|
|00001490| 56 65 68 69 63 6c 65 53 | 74 61 74 73 41 72 72 61 |VehicleS|tatsArra|
|000014a0| 79 5b 69 5d 2e 4b 69 6c | 6c 73 2b 2b 3b 0d 0a 09 |y[i].Kil|ls++;...|
|000014b0| 09 09 72 65 74 75 72 6e | 3b 0d 0a 09 09 7d 0d 0a |..return|;....}..|
|000014c0| 0d 0a 09 4e 65 77 56 65 | 68 69 63 6c 65 53 74 61 |...NewVe|hicleSta|
|000014d0| 74 73 2e 56 65 68 69 63 | 6c 65 43 6c 61 73 73 20 |ts.Vehic|leClass |
|000014e0| 3d 20 56 3b 0d 0a 09 4e | 65 77 56 65 68 69 63 6c |= V;...N|ewVehicl|
|000014f0| 65 53 74 61 74 73 2e 4b | 69 6c 6c 73 20 3d 20 31 |eStats.K|ills = 1|
|00001500| 3b 0d 0a 09 56 65 68 69 | 63 6c 65 53 74 61 74 73 |;...Vehi|cleStats|
|00001510| 41 72 72 61 79 5b 56 65 | 68 69 63 6c 65 53 74 61 |Array[Ve|hicleSta|
|00001520| 74 73 41 72 72 61 79 2e | 4c 65 6e 67 74 68 5d 20 |tsArray.|Length] |
|00001530| 3d 20 4e 65 77 56 65 68 | 69 63 6c 65 53 74 61 74 |= NewVeh|icleStat|
|00001540| 73 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |s;..}...|.functio|
|00001550| 6e 20 41 64 64 56 65 68 | 69 63 6c 65 44 65 61 74 |n AddVeh|icleDeat|
|00001560| 68 28 63 6c 61 73 73 3c | 44 61 6d 61 67 65 54 79 |h(class<|DamageTy|
|00001570| 70 65 3e 20 44 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |pe> D)..|{...loca|
|00001580| 6c 20 63 6c 61 73 73 3c | 56 65 68 69 63 6c 65 3e |l class<|Vehicle>|
|00001590| 20 56 3b 0d 0a 09 6c 6f | 63 61 6c 20 69 6e 74 20 | V;...lo|cal int |
|000015a0| 69 3b 0d 0a 09 6c 6f 63 | 61 6c 20 56 65 68 69 63 |i;...loc|al Vehic|
|000015b0| 6c 65 53 74 61 74 73 20 | 4e 65 77 56 65 68 69 63 |leStats |NewVehic|
|000015c0| 6c 65 53 74 61 74 73 3b | 0d 0a 0d 0a 09 69 66 20 |leStats;|.....if |
|000015d0| 28 63 6c 61 73 73 3c 56 | 65 68 69 63 6c 65 44 61 |(class<V|ehicleDa|
|000015e0| 6d 61 67 65 54 79 70 65 | 3e 28 44 29 20 3d 3d 20 |mageType|>(D) == |
|000015f0| 4e 6f 6e 65 29 0d 0a 09 | 09 72 65 74 75 72 6e 3b |None)...|.return;|
|00001600| 0d 0a 0d 0a 09 56 20 3d | 20 63 6c 61 73 73 3c 56 |.....V =| class<V|
|00001610| 65 68 69 63 6c 65 44 61 | 6d 61 67 65 54 79 70 65 |ehicleDa|mageType|
|00001620| 3e 28 44 29 2e 64 65 66 | 61 75 6c 74 2e 56 65 68 |>(D).def|ault.Veh|
|00001630| 69 63 6c 65 43 6c 61 73 | 73 3b 0d 0a 09 69 66 20 |icleClas|s;...if |
|00001640| 28 56 20 3d 3d 20 4e 6f | 6e 65 29 0d 0a 09 09 72 |(V == No|ne)....r|
|00001650| 65 74 75 72 6e 3b 0d 0a | 0d 0a 09 66 6f 72 20 28 |eturn;..|...for (|
|00001660| 69 20 3d 20 30 3b 20 69 | 20 3c 20 56 65 68 69 63 |i = 0; i| < Vehic|
|00001670| 6c 65 53 74 61 74 73 41 | 72 72 61 79 2e 4c 65 6e |leStatsA|rray.Len|
|00001680| 67 74 68 3b 20 69 2b 2b | 29 0d 0a 09 09 69 66 20 |gth; i++|)....if |
|00001690| 28 56 65 68 69 63 6c 65 | 53 74 61 74 73 41 72 72 |(Vehicle|StatsArr|
|000016a0| 61 79 5b 69 5d 2e 56 65 | 68 69 63 6c 65 43 6c 61 |ay[i].Ve|hicleCla|
|000016b0| 73 73 20 3d 3d 20 56 29 | 0d 0a 09 09 7b 0d 0a 09 |ss == V)|....{...|
|000016c0| 09 09 56 65 68 69 63 6c | 65 53 74 61 74 73 41 72 |..Vehicl|eStatsAr|
|000016d0| 72 61 79 5b 69 5d 2e 44 | 65 61 74 68 73 2b 2b 3b |ray[i].D|eaths++;|
|000016e0| 0d 0a 09 09 09 72 65 74 | 75 72 6e 3b 0d 0a 09 09 |.....ret|urn;....|
|000016f0| 7d 0d 0a 0d 0a 09 4e 65 | 77 56 65 68 69 63 6c 65 |}.....Ne|wVehicle|
|00001700| 53 74 61 74 73 2e 56 65 | 68 69 63 6c 65 43 6c 61 |Stats.Ve|hicleCla|
|00001710| 73 73 20 3d 20 56 3b 0d | 0a 09 4e 65 77 56 65 68 |ss = V;.|..NewVeh|
|00001720| 69 63 6c 65 53 74 61 74 | 73 2e 44 65 61 74 68 73 |icleStat|s.Deaths|
|00001730| 20 3d 20 31 3b 0d 0a 09 | 56 65 68 69 63 6c 65 53 | = 1;...|VehicleS|
|00001740| 74 61 74 73 41 72 72 61 | 79 5b 56 65 68 69 63 6c |tatsArra|y[Vehicl|
|00001750| 65 53 74 61 74 73 41 72 | 72 61 79 2e 4c 65 6e 67 |eStatsAr|ray.Leng|
|00001760| 74 68 5d 20 3d 20 4e 65 | 77 56 65 68 69 63 6c 65 |th] = Ne|wVehicle|
|00001770| 53 74 61 74 73 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |Stats;..|}....fun|
|00001780| 63 74 69 6f 6e 20 41 64 | 64 56 65 68 69 63 6c 65 |ction Ad|dVehicle|
|00001790| 44 65 61 74 68 44 72 69 | 76 69 6e 67 28 63 6c 61 |DeathDri|ving(cla|
|000017a0| 73 73 3c 56 65 68 69 63 | 6c 65 3e 20 56 29 0d 0a |ss<Vehic|le> V)..|
|000017b0| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 69 6e 74 20 69 3b |{...loca|l int i;|
|000017c0| 0d 0a 09 6c 6f 63 61 6c | 20 56 65 68 69 63 6c 65 |...local| Vehicle|
|000017d0| 53 74 61 74 73 20 4e 65 | 77 56 65 68 69 63 6c 65 |Stats Ne|wVehicle|
|000017e0| 53 74 61 74 73 3b 0d 0a | 0d 0a 09 66 6f 72 20 28 |Stats;..|...for (|
|000017f0| 69 20 3d 20 30 3b 20 69 | 20 3c 20 56 65 68 69 63 |i = 0; i| < Vehic|
|00001800| 6c 65 53 74 61 74 73 41 | 72 72 61 79 2e 4c 65 6e |leStatsA|rray.Len|
|00001810| 67 74 68 3b 20 69 2b 2b | 29 0d 0a 09 09 69 66 20 |gth; i++|)....if |
|00001820| 28 56 65 68 69 63 6c 65 | 53 74 61 74 73 41 72 72 |(Vehicle|StatsArr|
|00001830| 61 79 5b 69 5d 2e 56 65 | 68 69 63 6c 65 43 6c 61 |ay[i].Ve|hicleCla|
|00001840| 73 73 20 3d 3d 20 56 29 | 0d 0a 09 09 7b 0d 0a 09 |ss == V)|....{...|
|00001850| 09 09 56 65 68 69 63 6c | 65 53 74 61 74 73 41 72 |..Vehicl|eStatsAr|
|00001860| 72 61 79 5b 69 5d 2e 44 | 65 61 74 68 73 44 72 69 |ray[i].D|eathsDri|
|00001870| 76 69 6e 67 2b 2b 3b 0d | 0a 09 09 09 72 65 74 75 |ving++;.|....retu|
|00001880| 72 6e 3b 0d 0a 09 09 7d | 0d 0a 0d 0a 09 4e 65 77 |rn;....}|.....New|
|00001890| 56 65 68 69 63 6c 65 53 | 74 61 74 73 2e 56 65 68 |VehicleS|tats.Veh|
|000018a0| 69 63 6c 65 43 6c 61 73 | 73 20 3d 20 56 3b 0d 0a |icleClas|s = V;..|
|000018b0| 09 4e 65 77 56 65 68 69 | 63 6c 65 53 74 61 74 73 |.NewVehi|cleStats|
|000018c0| 2e 44 65 61 74 68 73 44 | 72 69 76 69 6e 67 20 3d |.DeathsD|riving =|
|000018d0| 20 31 3b 0d 0a 09 56 65 | 68 69 63 6c 65 53 74 61 | 1;...Ve|hicleSta|
|000018e0| 74 73 41 72 72 61 79 5b | 56 65 68 69 63 6c 65 53 |tsArray[|VehicleS|
|000018f0| 74 61 74 73 41 72 72 61 | 79 2e 4c 65 6e 67 74 68 |tatsArra|y.Length|
|00001900| 5d 20 3d 20 4e 65 77 56 | 65 68 69 63 6c 65 53 74 |] = NewV|ehicleSt|
|00001910| 61 74 73 3b 0d 0a 7d 0d | 0a 00 |ats;..}.|.. |
+--------+-------------------------+-------------------------+--------+--------+